﻿//
// Created by francklinson on 2021/3/21.
//

#include "plorg.h"

Plorg::Plorg(const char *name, int ci)
{
    for (int i = 0; i < MAX and name[i] != '\0'; ++i)
    {
        this->name[i] = name[i];
    }
    this->CI = ci;
}

void Plorg::show()
{
    using std::cout;
    using std::endl;
    cout << "name: " << this->name << " CI: " << this->CI << endl;
}

void Plorg::changeCI(int n)
{
    this->CI = n;
}

